package com.zjhn.ds.controller.app.pad;

import com.alibaba.fastjson.JSON;
import com.zjhn.ds.common.BizResult;
import com.zjhn.ds.domain.dto.pad.StationMonitorDto;
import com.zjhn.ds.param.StationMonitorParam;
import com.zjhn.ds.service.StationMonitorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.controller.app.pad
 * @Author: sxt
 * @CreateTime: 2023-10-05  13:52
 * @Description:
 * @Version: 1.0
 */
@Slf4j
@RestController
@RequestMapping("/jlw/monitor")
@Api(tags = "pad端机台监控接口")
public class StationMonitorController {

    @Resource
    private StationMonitorService stationMonitorService;

    @ApiOperation("机台监控页面数据")
    @PostMapping("/stationMonitor")
    public BizResult<StationMonitorDto> stationMonitor(@RequestBody @Valid StationMonitorParam param) {
        log.info("====[INFO]========StationMonitorController====stationMonitor param:{}", JSON.toJSONString(param));
        return stationMonitorService.stationMonitor(param);
    }



}
